package com.example.cinema.repository;

import com.example.cinema.model.Seat;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
import java.util.Optional;

public interface SeatRepository extends JpaRepository<Seat, Integer> {
    List<Seat> findByScheduleId(Integer scheduleId);
    Optional<Seat> findByScheduleIdAndRowNoAndColNo(Integer scheduleId, Integer rowNo, Integer colNo);
}